package com.homedo.async.mysql.support.convertor.forfieldval;

/**
 * @author jgshun
 * @date 2020/1/20 11:51 AM
 */
public class IntegerResultFieldValConvertor implements ResultFieldValConvertorI {
    private static final IntegerResultFieldValConvertor INSTANCE = new IntegerResultFieldValConvertor();

    public static IntegerResultFieldValConvertor getInstance() {
        return INSTANCE;
    }

    @Override
    public Integer convertor(Object columnVal) {
        return Integer.valueOf(columnVal.toString());
    }

}
